package com.yunxi.dao.sys;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.sys.Area;
import com.yunxi.sys.pojo.AreaVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 地域信息 Mapper 接口
 * </p>
 *
 * @author
 * @since 2019-05-07
 */
public interface AreaMapper extends BaseMapperPlus<Area> {
    List<AreaVO> listByPid(String pid);

    List<AreaVO> findAll(String pcode);

    List<AreaVO> listProvince();

    List<AreaVO> findAllByType(@Param("type") Integer type);

   Object loadCas(AreaVO areaVO);

   void deleteSub(String areaId);

   List<AreaVO> listAllProvince(AreaVO areaVO);

   List<AreaVO> findPageNotExit(@Param("pcode")String pcode);

   String getBigRegionByCityCode(@Param("cityCode")String cityCode);

    AreaVO queryAreaByPartnerCode(@Param("partnerCode") String partnerCode);
}
